﻿<?php
require_once('../../config.php');
 require_once($CFG->libdir . '/adminlib.php');
 require_once($CFG->dirroot . '/local/myplugin/lib.php');
require_once($CFG->dirroot . "/local/myplugin/forms.php");

global $DB;
$option=array();

/* Ket noi den file javascript - module.js */
$PAGE->requires->js_init_call('M.local_myplugin');	
$cssdir =  $CFG->wwwroot.'/local/myplugin/css/mycss.css';
echo '<link rel="stylesheet" href="'.$cssdir.'" type="text/css" media="screen" />';

/* Chuan bi trang web can hien thi */	
$url = new moodle_url($CFG->wwwroot.'local/myplugin/view_program.php');
$PAGE->set_url($url);
$PAGE->set_title('Add Academic Program');
$PAGE->set_heading('Add Academic Program');
$PAGE->set_pagelayout('standard');

//Them thanh menu ngang ung voi trang trong duong link
navigation_node::override_active_url(new moodle_url($CFG->wwwroot.'/local/myplugin/view_program.php', array('param'=>'value')));

echo $OUTPUT->header();

/* Viet doan code cua ban o day */
$add_curr_form = new form_view_program();
$add_curr_form->display();

/*------Ket thuc doan code cua ban-------*/

echo $OUTPUT->footer();
